<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/ui/header.jsp" %>
<style>
    iframe {
        width: 100%;
        height: 100%;
        background-color: #D3D3D3;
    }
</style>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs">任务调度中心</div>
        <ul class="layui-nav layui-layout-right layui-bg-cyan">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="/dologout">
                    登出
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">系统设置</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="/sysOrgUser/index.jsp">部门管理</a></dd>
                        <dd><a href="javascript:;" data-url="/sysOrgUser/index.jsp">用户管理</a></dd>
                        <dd><a href="javascript:;" data-url="/sysOrgRole/index.jsp">角色管理</a></dd>
                    </dl>
                </li>
              <li class="layui-nav-item">
                    <a href="javascript:;">任务管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="/sysOrgAddress/index.jsp">地址管理</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe src="/body.jsp" frameborder="0"></iframe>
    </div>

    <div class="layui-footer">
        底部固定区域
    </div>
</div>
<script>
    layui.use(['element', 'layer'], function () {
        var element = layui.element,
            layer = layui.layer,
            $ = layui.$;
        element.on('nav(test)', function (elem) {
            var url = elem.attr('data-url');
            $("iframe").attr("src", url);
        });
    });
</script>
</body>
</html>
      